<?php

namespace app\base\controller\api;

use app\base\model\RedianData;
use app\base\service\WsSendService;
use Psr\Log\NullLogger;
use think\admin\Controller;
use app\base\model\AiDevice;
use app\base\controller\api\Auth;
use app\base\model\AiVoice;
use think\admin\model\SystemQueue;


/**
 * 设备相关
 * Class Login
 * @package app\store\controller
 */
class Queue extends Controller
{
    public function progress()
    {
        $input = $this->_vali(['code.require' => '任务编号不能为空！']);
        $this->app->db->setLog(new NullLogger()); /* 关闭数据库请求日志 */
        $message = SystemQueue::mk()->where($input)->value('message', '');
        $this->success('获取任务进度成功d！', json_decode($message, true));
    }
}
